package service

import (
	"context"
	"fmt"
	"youfu-log/pb"
)

type HelloService struct {
	pb.UnimplementedHelloServiceServer
}

func (svc *HelloService) SayHello(ctx context.Context, request *pb.HelloRequest) (*pb.HelloResponse, error) {
	fmt.Println("客户请求: SayHello 方法")
	response := pb.HelloResponse{Message: "Hello," + request.Name}
	return &response, nil
}
